package com.ruoyi.web.controller.mall.orderCom.service.impl;

import com.ruoyi.web.controller.mall.orderCom.domain.OrderCom;
import com.ruoyi.web.controller.mall.orderCom.mapper.OrderComMapper;
import com.ruoyi.web.controller.mall.orderCom.service.IOrderComService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单返佣Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class OrderComServiceImpl implements IOrderComService 
{
    @Autowired
    private OrderComMapper orderComMapper;

    /**
     * 查询订单返佣
     * 
     * @param id 订单返佣ID
     * @return 订单返佣
     */
    @Override
    public OrderCom selectOrderComById(String id)
    {
        return orderComMapper.selectOrderComById(id);
    }

    /**
     * 查询订单返佣列表
     * 
     * @param orderCom 订单返佣
     * @return 订单返佣
     */
    @Override
    public List<OrderCom> selectOrderComList(OrderCom orderCom)
    {
        return orderComMapper.selectOrderComList(orderCom);
    }

    /**
     * 新增订单返佣
     * 
     * @param orderCom 订单返佣
     * @return 结果
     */
    @Override
    public int insertOrderCom(OrderCom orderCom)
    {
        return orderComMapper.insertOrderCom(orderCom);
    }

    /**
     * 修改订单返佣
     * 
     * @param orderCom 订单返佣
     * @return 结果
     */
    @Override
    public int updateOrderCom(OrderCom orderCom)
    {
        return orderComMapper.updateOrderCom(orderCom);
    }

    /**
     * 删除订单返佣对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOrderComByIds(String[] ids)
    {
        return orderComMapper.deleteOrderComByIds(ids);
    }

    /**
     * 删除订单返佣信息
     * 
     * @param id 订单返佣ID
     * @return 结果
     */
    @Override
    public int deleteOrderComById(String id)
    {
        return orderComMapper.deleteOrderComById(id);
    }
}
